package com.macro.mall.demo2.service.impl;

import com.macro.mall.demo2.dao.HomeMapper;
import com.macro.mall.demo2.dto.HomeRes;
import com.macro.mall.demo2.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author：贾维斯
 * @Description: 描述
 * @name：HomeServiceImpl
 * @Date：2024/10/20 10:27
 */
@Service
public class HomeServiceImpl implements HomeService {
    @Autowired
    private HomeMapper homeMapper;

    /**
     * 首页信息
     * @return
     */
    @Override
    public HomeRes getHomeContent() {
        HomeRes homeRes = new HomeRes();
        homeRes.setBrandList(homeMapper.getRecommentBrandsList());
        return homeRes;
    }
}
